package com.rolerealm.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 用户偏好设置实体
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("user_preferences")
public class UserPreferenceEntity {

    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("user_id")
    private Long userId;

    @TableField("voice_speed")
    private Double voiceSpeed;

    @TableField("voice_pitch")
    private Double voicePitch;

    @TableField("voice_volume")
    private Double voiceVolume;

    @TableField("preferred_voice")
    private String preferredVoice;

    @TableField("language_preference")
    private String languagePreference;

    @TableField("auto_play_voice")
    private Integer autoPlayVoice;

    @TableField("show_transcript")
    private Integer showTranscript;

    @TableField(value = "created_at", fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @TableField(value = "updated_at", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;
}


